package com.github.kotvertolet.youtubejextractor.models.newModels;

import com.google.gson.annotations.SerializedName;
import ohos.utils.Parcel;
import ohos.utils.Sequenceable;

import java.io.Serializable;

public class VideostatsPlaybackUrl implements Sequenceable, Serializable {

    @SerializedName("baseUrl")
    private String baseUrl;

    public static final Sequenceable.Producer<VideostatsPlaybackUrl> CREATOR = new Producer<VideostatsPlaybackUrl>() {
        @Override
        public VideostatsPlaybackUrl createFromParcel(Parcel parcel) {
            // Initialize an instance first, then do customized unmarshlling.
            VideostatsPlaybackUrl videostatsPlaybackUrl = new VideostatsPlaybackUrl();
            videostatsPlaybackUrl.unmarshalling(parcel);
            return videostatsPlaybackUrl;
        }
    };
    
    @Override
    public boolean marshalling(Parcel parcel) {
        parcel.writeString(this.baseUrl);
        return true;
    }

    @Override
    public boolean unmarshalling(Parcel parcel) {
        this.baseUrl=parcel.readString();
        return true;
    }

    public String getBaseUrl() {
        return baseUrl;
    }

    public void setBaseUrl(String baseUrl) {
        this.baseUrl = baseUrl;
    }

    @Override
    public String toString() {
        return "VideostatsPlaybackUrl{" +
                "baseUrl='" + baseUrl + '\'' +
                '}';
    }
}
